package com.kingwang.training.designpattern.builder.builder;

import com.kingwang.training.designpattern.builder.bean.CarBody;
import com.kingwang.training.designpattern.builder.bean.Engine;
import com.kingwang.training.designpattern.builder.bean.HammerEngine;
import com.kingwang.training.designpattern.builder.bean.ToyotaCarBody;
import com.kingwang.training.designpattern.builder.bean.Wheel;

public class OtherCarBuilder extends CarBuilder {
    @Override
    public Engine buildEngine() {
        return new HammerEngine();
    }

    @Override
    public CarBody buildBody() {
        return new ToyotaCarBody();
    }

    @Override
    public Wheel buildWheel() {
        return null;
    }
}
